package com.artpri.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OrderInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "order_info", catalog = "jpw")
public class OrderInfo implements java.io.Serializable {

	// Fields

	private Integer orderId;
	private Integer userNum;
	private Integer shopkeeperNum;
	private Double goodsAmount;
	private String orderPayWay;
	private Double orderJf;
	private Double orderBonus;
	private Integer orderState;
	private Integer orderDeliverState;
	private Integer orderPayState;
	private Integer orderRefundState;
	private Timestamp orderCreatTime;
	private Timestamp orderConfTime;
	private Timestamp orderCancelTime;
	private Timestamp orderPastTime;
	private Timestamp orderPayTime;
	private Timestamp orderDeliverTime;
	private Timestamp orderDeliverConf;
	private Timestamp orderCompleteTime;
	private String orderDeliverNum;
	private String orderConsignee;
	private String orderAddress;
	private String orderPhone;
	private String orderTransport;
	private Double orderFreight;
	private String orderLeave;
	private String orderCancelReson;
	private String orderReturnReason;
	private Double orderSupportMoney;

	// Constructors

	/** default constructor */
	public OrderInfo() {
	}

	/** minimal constructor */
	public OrderInfo(Integer userNum, Integer shopkeeperNum,
			Double goodsAmount, Integer orderState, Integer orderPayState,
			Timestamp orderCreatTime, String orderConsignee,
			String orderAddress, String orderPhone, String orderTransport) {
		this.userNum = userNum;
		this.shopkeeperNum = shopkeeperNum;
		this.goodsAmount = goodsAmount;
		this.orderState = orderState;
		this.orderPayState = orderPayState;
		this.orderCreatTime = orderCreatTime;
		this.orderConsignee = orderConsignee;
		this.orderAddress = orderAddress;
		this.orderPhone = orderPhone;
		this.orderTransport = orderTransport;
	}

	/** full constructor */
	public OrderInfo(Integer userNum, Integer shopkeeperNum,
			Double goodsAmount, String orderPayWay, Double orderJf,
			Double orderBonus, Integer orderState, Integer orderDeliverState,
			Integer orderPayState, Integer orderRefundState,
			Timestamp orderCreatTime, Timestamp orderConfTime,
			Timestamp orderCancelTime, Timestamp orderPastTime,
			Timestamp orderPayTime, Timestamp orderDeliverTime,
			Timestamp orderDeliverConf, Timestamp orderCompleteTime,
			String orderDeliverNum, String orderConsignee, String orderAddress,
			String orderPhone, String orderTransport, Double orderFreight,
			String orderLeave, String orderCancelReson,
			String orderReturnReason, Double orderSupportMoney) {
		this.userNum = userNum;
		this.shopkeeperNum = shopkeeperNum;
		this.goodsAmount = goodsAmount;
		this.orderPayWay = orderPayWay;
		this.orderJf = orderJf;
		this.orderBonus = orderBonus;
		this.orderState = orderState;
		this.orderDeliverState = orderDeliverState;
		this.orderPayState = orderPayState;
		this.orderRefundState = orderRefundState;
		this.orderCreatTime = orderCreatTime;
		this.orderConfTime = orderConfTime;
		this.orderCancelTime = orderCancelTime;
		this.orderPastTime = orderPastTime;
		this.orderPayTime = orderPayTime;
		this.orderDeliverTime = orderDeliverTime;
		this.orderDeliverConf = orderDeliverConf;
		this.orderCompleteTime = orderCompleteTime;
		this.orderDeliverNum = orderDeliverNum;
		this.orderConsignee = orderConsignee;
		this.orderAddress = orderAddress;
		this.orderPhone = orderPhone;
		this.orderTransport = orderTransport;
		this.orderFreight = orderFreight;
		this.orderLeave = orderLeave;
		this.orderCancelReson = orderCancelReson;
		this.orderReturnReason = orderReturnReason;
		this.orderSupportMoney = orderSupportMoney;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "order_id", unique = true, nullable = false)
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "user_num", nullable = false)
	public Integer getUserNum() {
		return this.userNum;
	}

	public void setUserNum(Integer userNum) {
		this.userNum = userNum;
	}

	@Column(name = "shopkeeper_num", nullable = false)
	public Integer getShopkeeperNum() {
		return this.shopkeeperNum;
	}

	public void setShopkeeperNum(Integer shopkeeperNum) {
		this.shopkeeperNum = shopkeeperNum;
	}

	@Column(name = "goods_amount", nullable = false, precision = 10)
	public Double getGoodsAmount() {
		return this.goodsAmount;
	}

	public void setGoodsAmount(Double goodsAmount) {
		this.goodsAmount = goodsAmount;
	}

	@Column(name = "order_pay_way", length = 20)
	public String getOrderPayWay() {
		return this.orderPayWay;
	}

	public void setOrderPayWay(String orderPayWay) {
		this.orderPayWay = orderPayWay;
	}

	@Column(name = "order_jf", precision = 10)
	public Double getOrderJf() {
		return this.orderJf;
	}

	public void setOrderJf(Double orderJf) {
		this.orderJf = orderJf;
	}

	@Column(name = "order_bonus", precision = 10)
	public Double getOrderBonus() {
		return this.orderBonus;
	}

	public void setOrderBonus(Double orderBonus) {
		this.orderBonus = orderBonus;
	}

	@Column(name = "order_state", nullable = false)
	public Integer getOrderState() {
		return this.orderState;
	}

	public void setOrderState(Integer orderState) {
		this.orderState = orderState;
	}

	@Column(name = "order_deliver_state")
	public Integer getOrderDeliverState() {
		return this.orderDeliverState;
	}

	public void setOrderDeliverState(Integer orderDeliverState) {
		this.orderDeliverState = orderDeliverState;
	}

	@Column(name = "order_pay_state", nullable = false)
	public Integer getOrderPayState() {
		return this.orderPayState;
	}

	public void setOrderPayState(Integer orderPayState) {
		this.orderPayState = orderPayState;
	}

	@Column(name = "order_refund_state")
	public Integer getOrderRefundState() {
		return this.orderRefundState;
	}

	public void setOrderRefundState(Integer orderRefundState) {
		this.orderRefundState = orderRefundState;
	}

	@Column(name = "order_creat_time", nullable = false, length = 19)
	public Timestamp getOrderCreatTime() {
		return this.orderCreatTime;
	}

	public void setOrderCreatTime(Timestamp orderCreatTime) {
		this.orderCreatTime = orderCreatTime;
	}

	@Column(name = "order_conf_time", length = 19)
	public Timestamp getOrderConfTime() {
		return this.orderConfTime;
	}

	public void setOrderConfTime(Timestamp orderConfTime) {
		this.orderConfTime = orderConfTime;
	}

	@Column(name = "order_cancel_time", length = 19)
	public Timestamp getOrderCancelTime() {
		return this.orderCancelTime;
	}

	public void setOrderCancelTime(Timestamp orderCancelTime) {
		this.orderCancelTime = orderCancelTime;
	}

	@Column(name = "order_past_time", length = 19)
	public Timestamp getOrderPastTime() {
		return this.orderPastTime;
	}

	public void setOrderPastTime(Timestamp orderPastTime) {
		this.orderPastTime = orderPastTime;
	}

	@Column(name = "order_pay_time", length = 19)
	public Timestamp getOrderPayTime() {
		return this.orderPayTime;
	}

	public void setOrderPayTime(Timestamp orderPayTime) {
		this.orderPayTime = orderPayTime;
	}

	@Column(name = "order_deliver_time", length = 19)
	public Timestamp getOrderDeliverTime() {
		return this.orderDeliverTime;
	}

	public void setOrderDeliverTime(Timestamp orderDeliverTime) {
		this.orderDeliverTime = orderDeliverTime;
	}

	@Column(name = "order_deliver_conf", length = 19)
	public Timestamp getOrderDeliverConf() {
		return this.orderDeliverConf;
	}

	public void setOrderDeliverConf(Timestamp orderDeliverConf) {
		this.orderDeliverConf = orderDeliverConf;
	}

	@Column(name = "order_complete_time", length = 19)
	public Timestamp getOrderCompleteTime() {
		return this.orderCompleteTime;
	}

	public void setOrderCompleteTime(Timestamp orderCompleteTime) {
		this.orderCompleteTime = orderCompleteTime;
	}

	@Column(name = "order_deliver_num", length = 30)
	public String getOrderDeliverNum() {
		return this.orderDeliverNum;
	}

	public void setOrderDeliverNum(String orderDeliverNum) {
		this.orderDeliverNum = orderDeliverNum;
	}

	@Column(name = "order_consignee", nullable = false, length = 20)
	public String getOrderConsignee() {
		return this.orderConsignee;
	}

	public void setOrderConsignee(String orderConsignee) {
		this.orderConsignee = orderConsignee;
	}

	@Column(name = "order_address", nullable = false, length = 100)
	public String getOrderAddress() {
		return this.orderAddress;
	}

	public void setOrderAddress(String orderAddress) {
		this.orderAddress = orderAddress;
	}

	@Column(name = "order_phone", nullable = false, length = 15)
	public String getOrderPhone() {
		return this.orderPhone;
	}

	public void setOrderPhone(String orderPhone) {
		this.orderPhone = orderPhone;
	}

	@Column(name = "order_transport", nullable = false, length = 20)
	public String getOrderTransport() {
		return this.orderTransport;
	}

	public void setOrderTransport(String orderTransport) {
		this.orderTransport = orderTransport;
	}

	@Column(name = "order_freight", precision = 10)
	public Double getOrderFreight() {
		return this.orderFreight;
	}

	public void setOrderFreight(Double orderFreight) {
		this.orderFreight = orderFreight;
	}

	@Column(name = "order_leave", length = 100)
	public String getOrderLeave() {
		return this.orderLeave;
	}

	public void setOrderLeave(String orderLeave) {
		this.orderLeave = orderLeave;
	}

	@Column(name = "order_cancel_reson", length = 100)
	public String getOrderCancelReson() {
		return this.orderCancelReson;
	}

	public void setOrderCancelReson(String orderCancelReson) {
		this.orderCancelReson = orderCancelReson;
	}

	@Column(name = "order_return_reason", length = 100)
	public String getOrderReturnReason() {
		return this.orderReturnReason;
	}

	public void setOrderReturnReason(String orderReturnReason) {
		this.orderReturnReason = orderReturnReason;
	}

	@Column(name = "order_support_money", precision = 10)
	public Double getOrderSupportMoney() {
		return this.orderSupportMoney;
	}

	public void setOrderSupportMoney(Double orderSupportMoney) {
		this.orderSupportMoney = orderSupportMoney;
	}

}